package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.ectemplate.EcProductLogo;
import com.ndp.fb.rdb.model.ectemplate.EcTemplateElementShowResult;
import com.ndp.fb.rdb.model.ectemplate.EcTemplateGroupCnt;

import java.util.List;

/**
 * Created by sisi.chen on 2016/7/6.
 */
public interface EcProductLogoRdbService {
    List<Long> batchSave(List<EcProductLogo> list);

    List<EcProductLogo> findByStyleGroupsAndelementColorTypeIdPager(Long orgId, String styleGroupIds, String elementColorTypeId, Integer firstResult, Integer sizeNo);

    List<EcProductLogo> filterByTemplate(Long templateId, String color, Long productId, Integer major);

    List<EcProductLogo> findByProductIdAndElementName(Long productId, String elementName);

    Long countProductByTemplateId(Long templateId);

    List<EcTemplateGroupCnt> getProductByTemplateId(List<Long> templateIds);

    List<EcProductLogo> findByElementColorTypeIdPager(String elementColorType, Long orgId, Integer firstResult, Integer sizeNo);

    Long countProductByOrgId(Long orgId);

    List<EcProductLogo> filter(String color, Long productId, int major);

    List<EcTemplateElementShowResult> findByFeedIdAndTemplateIdAndMajorAndOrgId(Long feedId, Long templateId, Boolean major, Long orgId);

    EcTemplateElementShowResult findByIdAndTemplateId(Long id, Long ecTemplateId);
}
